package com.github.niefy.modules.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.niefy.common.utils.PageUtils;
import com.github.niefy.modules.sys.entity.SysAddressEntity;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.mp.bean.tag.WxUserTag;

import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

/**
 * 地址表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-11-16 16:31:52
 */
public interface SysAddressService extends IService<SysAddressEntity> {

    List<SysAddressEntity> queryPage(Map<String, Object> params);

    SysAddressEntity createQrCode(SysAddressEntity entity) throws WxErrorException;

    SysAddressEntity queryByTagid(String tagid);

    /**
     * 创建标签
     * @param appid
     * @param entity
     */
    SysAddressEntity creatTag(String appid, SysAddressEntity entity) throws WxErrorException, UnsupportedEncodingException;


    /**
     * 修改标签
     * @param appid
     * @param entity 标签名称
     */
    SysAddressEntity updateTag(String appid, SysAddressEntity entity) throws WxErrorException;

    int deleteTag(String appid, Long[] ids) throws WxErrorException;

}

